package com.mwh.yuantu.dao;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mwh.yuantu.dao.mapper.SeoInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mwh.yuantu.entity.SeoInfoEntity;

/**
 * (SeoInfo)表数据库访问层
 *
 * @author maweihong
 * @since 2023-11-01 09:47:31
 */
@Service
public class SeoInfoDao extends ServiceImpl<SeoInfoMapper , SeoInfoEntity> {

    @Autowired
	private SeoInfoMapper seoInfoMapper;

    /**
     * 根据类型，查询seo信息
     * @param type 类型
     * @return
     */
    public SeoInfoEntity selectByType(String type){
        return seoInfoMapper.selectByType(type);
    }

    /**
     * seo信息
     * @param seoInfo
     */
    public int update(SeoInfoEntity seoInfo){
        return seoInfoMapper.update(seoInfo);
    }

}

